package c.m.d.b.beans;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import java.util.Date;

@Entity
public final class PropertyValue
{
    //TODO add the ID column and foreign key

    //TODO updatable false
    @Id
    @Column(name="PROPERTY_NAME", nullable = false)
    private String propertyName;

    //TODO should it be Boolean??
    @Column(name="BOOLEAN_VALUE")
    private Boolean booleanValue;

    @Column(name="NUMBER_VALUE")
    private Double numberValue;

    //TODO set the max lenth in annotation
    @Column(name="STRING_VALUE")
    private String stringValue;

    @Column(name="DATE_VALUE")
    private Date dateValue;

    @Column(name="REF_VALUE")
    private String refValue;

    public String getPropertyName()
    {
        return propertyName;
    }

    public void setPropertyName(String propertyName)
    {
        this.propertyName = propertyName;
    }

    public Boolean getBooleanValue()
    {
        return booleanValue;
    }

    public void setBooleanValue(Boolean booleanValue)
    {
        this.booleanValue = booleanValue;
    }

    public Double getNumberValue()
    {
        return numberValue;
    }

    public void setNumberValue(Double numberValue)
    {
        this.numberValue = numberValue;
    }

    public String getStringValue()
    {
        return stringValue;
    }

    public void setStringValue(String stringValue)
    {
        this.stringValue = stringValue;
    }

    public Date getDateValue()
    {
        return dateValue;
    }

    public void setDateValue(Date dateValue) {
        this.dateValue = dateValue;
    }

    public String getRefValue() {
        return refValue;
    }

    public void setRefValue(String refValue) {
        this.refValue = refValue;
    }
}
